package com.midian.action.mc.version;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.midian.action.mc.common.AjaxAction;
import com.midian.common.annotation.FunctionAnnotationOverride;
import com.midian.model.version.AndroidVersion;
import com.midian.service.version.IAndroidVersionService;

/**
 * android版本更新表Action
 * @author Mengfh
 *
 */
@Scope("prototype")
@Controller("androidVersionAction")
@FunctionAnnotationOverride(isAction = true, auth = "android版本更新表管理")
public class AndroidVersionAction extends AjaxAction<AndroidVersion> {
	/**android版本更新表实体*/
	private AndroidVersion entity;
	/**android版本更新表实体列表*/
	private List<AndroidVersion> rows;
	/**android版本更新表业务*/
	private IAndroidVersionService androidVersionService;
	
	public AndroidVersion getEntity() {
		return entity;
	}
	public void setEntity(AndroidVersion entity) {
		this.entity = entity;
	}
	@Resource(name = "androidVersionService")
	public void setAndroidVersionService(IAndroidVersionService androidVersionService) {
		this.service = androidVersionService;
		this.androidVersionService = androidVersionService;
	}
	@Override
	protected AndroidVersion dytEntity() {
		if(this.entity == null) {
			this.entity = new AndroidVersion();
		}
		return getEntity();
	}
	@Override
	protected void dyEntity(AndroidVersion t) {
		setEntity(t);
	}
	@Override
	public void setRows(List<AndroidVersion> rows) {
		this.rows = rows;
	}
	@Override
	public List<AndroidVersion> getRows() {
		return rows;
	}
}
